<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/20 11:22
 */
namespace app\api\validate;
class Circle extends BaseValidate
{
   	public function checkAddCircleParam()
    {
    	$this->rule = [
            'content' => 'require|isNotEmpty',
        ];

        $this->message = [
            'content.require' => 'content参数为空',
        ];

        $this->checkParam();
    }

    public function checkForwardCircleParam()
    {
        $this->rule = [
            'content' => 'require|isNotEmpty',
            'circle_id' => 'require|isNotEmpty',
        ];

        $this->message = [
            'content.require' => 'content参数为空',
            'circle_id.require' => 'circle_id参数为空',
        ];

        $this->checkParam();
    }

    public function checkCircleLikeParam()
    {
         $this->rule = [
            'circle_id' => 'require|isNotEmpty',
        ];

        $this->message = [
            'circle_id.require' => 'circle_id参数为空',
        ];

        $this->checkParam();
    }

    public function checkCircleFollowParam()
    {
        $this->rule = [
            'attention_id' => 'require|isNotEmpty',
        ];

        $this->message = [
            'attention_id.require' => 'attention_id参数为空',
        ];

        $this->checkParam();
    }

    public function checkCommentLikeParam()
    {
         $this->rule = [
            'comment_id' => 'require|isNotEmpty',
        ];

        $this->message = [
            'comment_id.require' => 'comment_id参数为空',
        ];

        $this->checkParam();
    }

   
}